//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package study.IO.字节流.InputStream;

import java.io.FileInputStream;
import java.io.IOException;

public class FileInputStream_demo {
    public FileInputStream_demo() {
    }

    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("JavaTest\\Files\\a.txt");

        int b;
        while((b = fis.read()) != -1) {
            System.out.print((char)b);
        }

        byte[] read = fis.readAllBytes();
        System.out.println(new String(read, "GBK"));
        fis.close();
    }
}
